package org.jeecg.modules.meter.mapper;

import java.util.List;

import com.baomidou.mybatisplus.annotation.SqlParser;
import org.apache.ibatis.annotations.Param;
import org.jeecg.entity.meter.Meter;
import org.jeecg.modules.meter.entity.MeterUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * @Description: 畅e用户手动绑定电表
 * @Author: jeecg-boot
 * @Date:   2019-12-05
 * @Version: V1.0
 */
@Repository
public interface MeterUserMapper extends BaseMapper<MeterUser> {

    @SqlParser(filter = true)
    List<Meter> findBindMeterByUserId(@Param("userId") String userId, @Param("meterType") String meterType);

    List<MeterUser> findByUserIdAndMeterId(@Param("meterId") String meterId,@Param("userId") String userId);
}
